
package za.ac.cput.peterjohn.DesignPatternPrincipals.creational.Builder.Model;

import za.ac.cput.peterjohn.DesignPatternPrincipals.creational.Builder.Model.MealBuilder;
import za.ac.cput.peterjohn.DesignPatternPrincipals.creational.Builder.Model.Meal;


public class MealDirector 
{
    private MealBuilder mealBuilder = null;

    public MealDirector(MealBuilder mealBuilder) { this.mealBuilder = mealBuilder; }
    
    public void constructMeal()
    {
        mealBuilder.buildDrink();
        mealBuilder.buildMainCourse();
        mealBuilder.buildSide();
    }
    
    public Meal getMeal(){ return mealBuilder.getMeal(); }
}